cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
project(Demo)
set(demo_root ${CMAKE_CURRENT_SOURCE_DIR})
message(">>>demo_root" = ${demo_root})
set(target_name demo)
set(library_name calc)
file(GLOB header_files *.h *.hpp)
file(GLOB src_files *.cpp)
include_directories(func)
link_directories(func)
add_executable(${target_name} ${src_files})
target_link_libraries(${target_name} ${library_name})
add_subdirectory(func)
# test
enable_testing()
add_subdirectory(test)
